// var math = require("./math_base");
// var a = 1;
// var b = 2;
// console.log(math.add(a,b));
// console.log(math.reduce(a,b));
// console.log(math.division(a,b));
// console.log(math.mult(a,b));

// var circle = require("./circle");
// var r = 3;
// console.log(circle.d(r));
// console.log(circle.c(r));
// console.log(circle.s(r));

const readline = require("readline-sync");
// var math = require("./math_base");
// console.log("输入数字与要格式化的长度,进行格式化");
// var str = readline.question("number: ");
// var len = readline.question("length: ");
// var result = math.format(str,len);
// console.log("结果: "+result);

// var evaluate = require("./score");
// var score = readline.question("score: ");
// var grade = evaluate.evaluate(score);
// console.log("评价: "+grade);

var scissors_rock_cloth = require("./scissors_rock_cloth");
console.log("石头剪刀布 1.石头 2.剪刀 3.布");
var player = readline.question("input: ");
var computer = Math.floor(Math.random() * 3 + 1);
console.log("computer: " + computer);
var result = scissors_rock_cloth.game(player,computer);
console.log(result);
